package cn.bulibuqi.myblog.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author bulibuqi
 * @create 2021-12-17:02
 */
@Data
@TableName("user")//默认是类名
public class User {
    private Long id;
    private String nickname;
    private String username;
    private String password;
    private String email;
    private String avatar;
    private Long type;
    private Date createTime;
    private Date updateTime;


    @TableField(exist = false)
    private List<Blog> blogs =new ArrayList<>();
}
